<?php
/**
 * @author	barbarosalcin
 * @desc	inc.constants
 * @version	$Id: 20110301
 * @package core
 */

define('TESTIMONIALS_TABLE',$config['db']['table_prefix'].'testimonials');
define('FORMFIELDS_TABLE',$config['db']['table_prefix'].'formfields');
define('FORMS_TABLE',$config['db']['table_prefix'].'forms');

/* do not touch */
define('CONTENT_TABLE',$config['db']['table_prefix'].'content');
define('CONFIG_TABLE',$config['db']['table_prefix'].'config');
define('USERS_LOG_TABLE',$config['db']['table_prefix'].'users_log');
define('MODULES_TABLE',$config['db']['table_prefix'].'modules');
define('ADVERTS_TABLE',$config['db']['table_prefix'].'adverts');

define('USERS_TABLE', $config['db']['table_prefix'] . 'users');
define('SESSIONS_TABLE', $config['db']['table_prefix'] . 'sessions');
define('SESSIONS_KEYS_TABLE', $config['db']['table_prefix'] . 'sessions_keys');

define('SESSION_METHOD_COOKIE', 100);
define('SESSION_METHOD_GET', 101);

define('ANONYMOUS', -1);
define('USER', 1);
define('USER_ONLINE', 2);
define('ADMIN', 99);

# Cache dir definition
define('CACHE_DIR', 'cache'.DS);

// SQL codes
define('BEGIN_TRANSACTION', 1);
define('END_TRANSACTION', 2);